package com.ciwong.epaper.modules.homework.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.ciwong.epaper.R;
import com.ciwong.epaper.ui.BaseFragment;

/**
 * @description:备课页面
 * @author: wyk
 * @time: 2021/9/9 17:31
 */
public class BeiKeFragment extends BaseFragment {
    private String name;
    private TextView txt_content;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Bundle bundle = getArguments();
        name = bundle.getString("name");
        if (name == null) {
            name = "参数非法";
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_beike, container, false);
        txt_content = view.findViewById(R.id.txt_content);
        //ButterKnife.bind(this, view);
        txt_content.setText(name);
        return view;
    }
}
